//
//  CustomView.m
//  DaDaLiCai
//
//  Created by user on 15/11/10.
//  Copyright © 2015年 Mikeshihua. All rights reserved.
//

#import "CustomView.h"

@implementation CustomView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        _label1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height/2.0)];
        _label1.font = [UIFont systemFontOfSize:12];
        _label1.textAlignment = NSTextAlignmentCenter;
        _label1.textColor = [UIColor hexStringToColor:@"#969494"];
        [self addSubview:_label1];
        _label2 = [[UILabel alloc]initWithFrame:CGRectMake(0, frame.size.height/2.0, frame.size.width, frame.size.height/2.0)];
        _label2.font = [UIFont systemFontOfSize:15];
        _label2.textAlignment = NSTextAlignmentCenter;
        _label2.textColor = [UIColor hexStringToColor:COLOR_VALUE];
        [self addSubview:_label2];
    }
    return self;
}
-(void)setTheTitle1:(NSString *)title1 andTitle2:(NSString *)title2
{
    _label1.text = title1;
    _label2.text = title2;
}
@end
